package ascloud.biz.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import ascloud.biz.dao.LegacyDao;
import ascloud.biz.mapper.LegacyMapper;
import ascloud.biz.model.Legacy;

@Repository
public class LegacyDaoImpl implements LegacyDao {

	@Autowired
	private JdbcTemplate jdbcTemplate;

	@Override
	public List<Legacy> getAll() {
		return this.jdbcTemplate.query("select * from legacy", new LegacyMapper());
	}

}
